package com.beg.cant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.lang.Long;

import java.time.LocalDateTime;
import java.lang.Long;
@Data
@TableName("comments")
public class Comment {
    @TableId(type = IdType.AUTO)
    @Schema(description = "评论ID", example = "1", required = true)
    private Long id;

    @Schema(description = "被评论的动态的ID", example = "1", required = true)
    private Long postId;

    @Schema(description = "发表此评论的用户的ID", example = "1", required = true)
    private Long userId;

    @Schema(description = "对某个用户进行评论的父评论ID", example = "2")
    private Long parentId;

    @Schema(description = "评论内容", example = "Great post!", required = true)
    private String content;

    @Schema(description = "评论时间", example = "2025-03-05T10:12:44", readOnly = true)
    private LocalDateTime createdAt;
}